﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
using System.Windows;

namespace demo2Framework
{
    [ClassInterface(ClassInterfaceType.AutoDual)]
    [ComVisible(true)]
    public class ScriptCallbackObject
    {
        public string GetMessageInfo()
        {
            return "后台返回消息";
        }

        public void ShowMessage(string arg)
        {
            Console.WriteLine(arg);
            MessageBox.Show("【前台传入消息】:" + arg);


            

        }
    }
}
